//
// NeL - bindings
// Copyright (C) 2010 Naush
//
//This program is free software: you can redistribute it and/or modify
//it under the terms of the GNU Affero General Public License as
//published by the Free Software Foundation, either version 3 of the
//License, or (at your option) any later version.
//
//This program is distributed in the hope that it will be useful,
//but WITHOUT ANY WARRANTY; without even the implied warranty of
//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//GNU Affero General Public License for more details.
//
//You should have received a copy of the GNU Affero General Public License
//along with this program.  If not, see <http://www.gnu.org/licenses/>.
package org.ryzom.nel.misc;

public class Vector_String {
  private long swigCPtr;
  protected boolean swigCMemOwn;

  public Vector_String(long cPtr, boolean cMemoryOwn) {
    swigCMemOwn = cMemoryOwn;
    swigCPtr = cPtr;
  }

  public static long getCPtr(Vector_String obj) {
    return (obj == null) ? 0 : obj.swigCPtr;
  }

  protected void finalize() {
    delete();
  }

  public synchronized void delete() {
    if (swigCPtr != 0) {
      if (swigCMemOwn) {
        swigCMemOwn = false;
        nelmiscJNI.delete_Vector_String(swigCPtr);
      }
      swigCPtr = 0;
    }
  }

  public Vector_String() {
    this(nelmiscJNI.new_Vector_String__SWIG_0(), true);
  }

  public Vector_String(long n) {
    this(nelmiscJNI.new_Vector_String__SWIG_1(n), true);
  }

  public long size() {
    return nelmiscJNI.Vector_String_size(swigCPtr, this);
  }

  public long capacity() {
    return nelmiscJNI.Vector_String_capacity(swigCPtr, this);
  }

  public void reserve(long n) {
    nelmiscJNI.Vector_String_reserve(swigCPtr, this, n);
  }

  public boolean isEmpty() {
    return nelmiscJNI.Vector_String_isEmpty(swigCPtr, this);
  }

  public void clear() {
    nelmiscJNI.Vector_String_clear(swigCPtr, this);
  }

  public void add(String x) {
    nelmiscJNI.Vector_String_add(swigCPtr, this, x);
  }

  public String get(int i) {
    return nelmiscJNI.Vector_String_get(swigCPtr, this, i);
  }

  public void set(int i, String val) {
    nelmiscJNI.Vector_String_set(swigCPtr, this, i, val);
  }

}
